package com.yuwubao.hz_International.entities.repository;

import com.yuwubao.hz_International.entities.InviteRewardsConfigEntity;
import org.jetbrains.annotations.Nullable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by yangyu on 2018/1/28.
 */
public interface InviteRewardsConfigRepository extends JpaRepository<InviteRewardsConfigEntity, Integer>, JpaSpecificationExecutor<InviteRewardsConfigEntity> {
    @Query(value = "select * from invite_rewards_config ORDER BY id DESC  LIMIT 1",nativeQuery = true)
   InviteRewardsConfigEntity getLast();
}
